package com.aaa.commen.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @PackageName: com.aaa.commen.query
 * @ClassName: RentExpireQuery
 * @Description: 分页条件
 * @author: 王嘉威
 * @Date: 2021/1/29 19:34
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageQuery {
    private Integer currPage;
    private Integer count;

    private Integer getIndex(){
        return (currPage-1)*count;
    }
}